//
//  BaseRequestController.h
//  Kadima
//
//  Created by Fidetro on 2016/11/5.
//  Copyright © 2016年 Dtston. All rights reserved.
//

#import "BaseViewController.h"

#import "UserInfo.h"
typedef void (^USERINFO_BLOCK)(UserInfo *userInfo);


@interface BaseRequestController : BaseViewController

- (void)startWithYTKRequest:(YTKRequest *)request
 completionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                    failure:(void(^)(YTKBaseRequest *request))failure;

/**
 返回本机用户资料的block
 */
@property (strong, nonatomic) USERINFO_BLOCK userinfo_block;


- (void)startWithYTKRequest:(YTKRequest *)request
 completionBlockWithSuccess:(void (^)(YTKBaseRequest *request))success
                    failure:(void(^)(YTKBaseRequest *request))failure;

/**
 获取用户资料
 
 @param user_block 用户资料
 */
- (void)getUserInfo_block:(USERINFO_BLOCK)user_block;
/**
 退出清除信息
 */
- (void)signOutInfo;


@end
